* lisp/mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator.
authorGlenn Morris <rgm@gnu.org>
Mon, 14 Nov 2011 02:01:00 +0000 (18:01 -0800)
committerGlenn Morris <rgm@gnu.org>
Mon, 14 Nov 2011 02:01:00 +0000 (18:01 -0800)
lisp/ChangeLog
lisp/mail/rmail.el

index 4b7e4b44f5143d49aef65c5e05deec656a240eb5..13dcafe26468d6386a4223aea1ee2d45ba0a0dd4 100644 (file)
@@ -1,5 +1,7 @@
 2011-11-14  Glenn Morris  <rgm@gnu.org>
 
+       * mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator.
+
        * mail/rmailsum.el (rmail-summary, rmail-new-summary)
        (rmail-new-summary-1): Allow empty summaries.  (Bug#9964)
        (rmail-new-summary): Remember that rmail-summary-buffer is buffer-local.
index 4b3441a8cdc366005d994458e09ce02f32b750c3..76c9b87f8814a747aebcc9049e34a3a11d7a15a6 100644 (file)
@@ -2602,6 +2602,8 @@ Ask the user whether to add that list name to `mail-mailing-lists'."
   "Return nil if there is mail, else \"No mail.\"."
   (if (zerop rmail-total-messages)
       (save-excursion
+       ;; Eg we deleted all the messages, so remove the old N/M mark.
+       (with-current-buffer rmail-buffer (setq mode-line-process nil))
        (with-current-buffer rmail-view-buffer
          (erase-buffer)
          "No mail."))))